package dfbz.demo05;

public class parsent {
    public String name="父类";
    public int age=50;

    public parsent() {
        System.out.println("当子类无参构成不写内容 默认会调用父类的构造");
    }
    public parsent(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void send(){
        System.out.println("这是父类的发文字短信功能");
    }
    public void show(){
        System.out.println(this.name+","+this.age);
    }
}
